<?php

use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\Route;

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/

//前端登录



Route::name('index')->get('/', "\App\Http\Controllers\Web\IndexController@index");

Route::name('web.')->prefix('web')->middleware(['domain'])->namespace("\App\Http\Controllers\Web")->group(function () {
    Route::name('login')->match(['get','post'],'login', "LoginController@login",);
    Route::name('qrcode')->match(['get','post'],'qrcode', "LoginController@qrcode");
    Route::name('binding')->match(['get','post'],'binding', "LoginController@binding");
    Route::name('openid')->match(['get'],'openid', "LoginController@setUserOpenid");
    Route::name('success')->get('success', "LoginController@successBind");
    Route::name('logout')->get('logout', "LoginController@logout");
});











